<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="/WEB-INF/jsp/include/easyui.jsp" %>
<%@ include file="/WEB-INF/jsp/include/pForm.jsp" %>
<%@ include file="/WEB-INF/jsp/include/easyui-layui-upload.jsp" %>
<script src="/plug-in/jquery-easyui-1.5.1/plugins/jquery.choosebox.js"></script>
<title>单项工程流程处理表单</title>
</head>
<body>
	<div class="easyui-panel" title="【当前环节: ${taskName}】" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/activiti/submitTask?taskId=${taskId}"   >
		 <!--类名属性及默认主键id-->
		 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Project" />
		 <input type="hidden" name="id" value="" />
		 <input type="hidden" name="createrId" value="${SESSION_USER.user.id}" />
		<input type="hidden"  name="department" value="" />
		<input type="hidden"  name="processInstanceId" value="" />
		 
		<div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="pNo" style="width:240px;"   data-options="label:'路段编号:',boxWidth:500,boxHeight:400,boxTitle:'自动生成项目编号',textField:'pNo',valueField:'pNo',modleName:'autoPno',required:true,readonly:true "/>
		  <input class="easyui-textbox easyui-validatebox" name="pRoad" style="width:480px;" data-options="label:'工程段落:',required:true,validType:'length[0,45]'" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-textbox easyui-validatebox" name="url" style="width:240px;" data-options="label:'云储存:',required:true" />
		  <select class="easyui-combobox" name="pName" style="width:485px;" data-options="label:'项目名称:'" 
				url="/console/newProject/combobox?textField=pName&valueField=pName" >
		   </select>
		 </div>
		 
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="pType" style="width:240px;" data-options="label:'专业类别:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A2&pCode_searchType=eq" >
		   </select>
		   <input class="easyui-textbox easyui-validatebox" name="contractNo" style="width:485px;" data-options="label:'订单编号:',validType:'length[0,45]'" />
		 </div>
		 
		 
		  <div style="margin-bottom:20px">
		  <input class="easyui-numberbox easyui-validatebox" name="budgetMoney" style="width:240px;" data-options="label:'立项预算:',precision:2" />
		  <input class="easyui-numberbox easyui-validatebox" name="actualMoney" style="width:240px;" data-options="label:'完工预算:',precision:2" />
		  <input class="easyui-textbox easyui-validatebox" name="status" value="初始化录入" style="width:240px;" data-options="label:'项目状态:'" readonly="readonly" />
		 </div>
		 
		  <div style="margin-bottom:20px">
		  	   <select class="easyui-combobox" name="pm" style="width:240px;" data-options="label:'项目经理:'" 
				url="/console/user/combobox?duty=项目经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		  
		  	 <select class="easyui-combobox" name="ppm" style="width:240px;" data-options="label:'工程经理:'" 
				url="/console/user/combobox?duty=工程经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		   	 
		  	 <select class="easyui-combobox" name="marketManager" style="width:240px;" data-options="label:'市场经理:'" 
				url="/console/user/combobox?duty=市场经理&duty_searchType=eq&textField=nickName&valueField=nickName" >
		   	 </select>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="constructionUnit" style="width:240px;" data-options="label:'建设单位:'" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=建设单位&type_searchType=eq" >
		 	</select>
		  	<select class="easyui-combobox" name="designUnit" style="width:240px;" data-options="label:'设计单位:'" 
				url="/console/combobox?valueField=name&textField=name&modleName=assistUnit&type=设计单位&type_searchType=eq" >
		 	</select>
		 	<select class="easyui-combobox" name="operator" style="width:240px;" data-options="label:'运营商:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A3&pCode_searchType=eq" >
		   </select>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combobox" name="subpackage" style="width:240px;" data-options="label:'是否分包:'" >
		 		<option value="是">是</option>
		 		<option value="否">否</option>
		   </select>
		   <select class="easyui-combobox" name="subpackageScale" style="width:240px;" data-options="label:'分包比例:'" 
				url="/console/combobox?valueField=dicValue&textField=dicName&modleName=dictionary&pCode=B8&pCode_searchType=eq" >
		   </select>
		   <input class="easyui-datebox easyui-validatebox" name="pCreateDate"  style="width:240px;" data-options="label:'订单日期:'" />
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<select class="easyui-combotreegrid" name="orgNo" style="width:240px;" readonly="readonly" data-options="label:'组织结构:',panelWidth:300,panelWidth:450,required:true,
	           	idField: 'orgNo', 
	           	missingMessage:'必填项',
				treeField: 'orgName',
				sortName:'orgOrder',
				onSelect:function(row){
					$('input[name=department]').val(row.orgName);	    
				},
				sortOrder:'asc',
	            url:'/console/com.fs.base.pojo.Org/list', 
	            queryParams:{isTreeGrid:'true', treeId:'id', treePid:'parentId' },
	            columns:[[    
	                {field:'orgName',			width:190,	title:'组织名称' }
		         	,{field:'orgType',			width:70,	title:'分类' }
		         	,{field:'orgNo',				width:100,	title:'组织编码' }
		         	,{field:'orgLeaderName',	width:70,	title:'负责人'}
	            ]]"></select>
		 	<select class="easyui-combobox" name="region" style="width:240px;" data-options="label:'区域:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=B5&pCode_searchType=eq" >
		    </select>
		 	<select class="easyui-combobox" name="priority" style="width:240px;" data-options="label:'优先级:'" 
				url="/console/combobox?valueField=dicName&textField=dicName&modleName=dictionary&pCode=B9&pCode_searchType=eq&text=中" >
		    </select>
		 </div>
		  
		 <div style="margin-bottom:20px">
		 	<input class="easyui-textbox easyui-validatebox" name="remark" multiline="true" style="width:485px;height:60px;" 
		 		 data-options="label:'备注:',required:false,validType:'length[0,500]'" />
		 	<label class="textbox-label textbox-label-before"  style="text-align: left; height: 24px; line-height: 24px;">施工信息:</label>
		 	<a id="viewInformationBut" style="color:-webkit-link;cursor: pointer;text-decoration: underline;" href="#" target="_blank">查看施工信息</a>
		 </div>
		 
		 <div style="margin-bottom:20px">
		 	<input class="easyui-layuiupload" name="attachment" style="width:725px;" data-options="label:'附件:',upload:{auto:false,height:150}" />
		 </div>
		 
		 <!-- 流程批注及提交处理 -->
		 <%@ include file="/WEB-INF/jsp/include/process-submit.jsp" %>
		</form>
	</div>
</body>
<script>
$(function(){
	var jsonVo = '${jsonVo}';
	jsonVo = JSON.parse(jsonVo);
	fn.loadData(jsonVo);
	$("#viewInformationBut").attr("href","/console/information/view?pNo="+jsonVo.pNo);
});
</script>

</html>